/*----------------------------------------------------*
       Project : Covid 19
       Purpose : Creating Youtube Views Plot
       updated : August 8 2022
	   
	   *This file creates a figure plotting the number of unique viewers and the total number of views of each of the 8 treatment videos. The data is provided by YouTube.
*-----------------------------------------------------*/

import delimited using "$DRIVE/data/youtubeviews.csv", clear

label var uniqueviews "Unique viewers"
label var totalviews "Total views"

graph bar uniqueviews totalviews, over(treatment) ytitle("Count") legend(label(1 "Unique viewers") label(2 "Total views")) b1title("Treatment Video")
graph export "$DRIVE/output/Figures/FigureA2_youtubeview.png", replace as(png)
graph close
